import clipboard from './clipboard';
import elDragDialog from './el-drag-dialog';
import elTable from './el-table';
import permission from './permission';
import waves from './waves';
import sticky from './sticky';

// 自定义指令
const directives = {
  clipboard, // 复制粘贴指令
  elDragDialog, // 可移动弹窗
  elTable,
  permission, // 按钮权限
  waves, // 点击花纹
  sticky, // 固定
};

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.use(directives[key]);
    });
  },
};
